/*
 * XML Type:  BankAccountInfo
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.BankAccountInfo
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML BankAccountInfo(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class BankAccountInfoImpl extends net.ofx.types.x2003.x04.impl.AbstractAccountInfoImpl implements net.ofx.types.x2003.x04.BankAccountInfo
{
    
    public BankAccountInfoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BANKACCTFROM$0 = 
        new javax.xml.namespace.QName("", "BANKACCTFROM");
    private static final javax.xml.namespace.QName SUPTXDL$2 = 
        new javax.xml.namespace.QName("", "SUPTXDL");
    private static final javax.xml.namespace.QName XFERSRC$4 = 
        new javax.xml.namespace.QName("", "XFERSRC");
    private static final javax.xml.namespace.QName XFERDEST$6 = 
        new javax.xml.namespace.QName("", "XFERDEST");
    private static final javax.xml.namespace.QName SVCSTATUS$8 = 
        new javax.xml.namespace.QName("", "SVCSTATUS");
    
    
    /**
     * Gets the "BANKACCTFROM" element
     */
    public net.ofx.types.x2003.x04.BankAccount getBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTFROM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "BANKACCTFROM" element
     */
    public void setBANKACCTFROM(net.ofx.types.x2003.x04.BankAccount bankacctfrom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTFROM$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTFROM$0);
            }
            target.set(bankacctfrom);
        }
    }
    
    /**
     * Appends and returns a new empty "BANKACCTFROM" element
     */
    public net.ofx.types.x2003.x04.BankAccount addNewBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTFROM$0);
            return target;
        }
    }
    
    /**
     * Gets the "SUPTXDL" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getSUPTXDL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUPTXDL$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "SUPTXDL" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetSUPTXDL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(SUPTXDL$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "SUPTXDL" element
     */
    public void setSUPTXDL(net.ofx.types.x2003.x04.BooleanType.Enum suptxdl)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUPTXDL$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SUPTXDL$2);
            }
            target.setEnumValue(suptxdl);
        }
    }
    
    /**
     * Sets (as xml) the "SUPTXDL" element
     */
    public void xsetSUPTXDL(net.ofx.types.x2003.x04.BooleanType suptxdl)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(SUPTXDL$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(SUPTXDL$2);
            }
            target.set(suptxdl);
        }
    }
    
    /**
     * Gets the "XFERSRC" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getXFERSRC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XFERSRC$4, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "XFERSRC" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetXFERSRC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(XFERSRC$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "XFERSRC" element
     */
    public void setXFERSRC(net.ofx.types.x2003.x04.BooleanType.Enum xfersrc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XFERSRC$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(XFERSRC$4);
            }
            target.setEnumValue(xfersrc);
        }
    }
    
    /**
     * Sets (as xml) the "XFERSRC" element
     */
    public void xsetXFERSRC(net.ofx.types.x2003.x04.BooleanType xfersrc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(XFERSRC$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(XFERSRC$4);
            }
            target.set(xfersrc);
        }
    }
    
    /**
     * Gets the "XFERDEST" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getXFERDEST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XFERDEST$6, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "XFERDEST" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetXFERDEST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(XFERDEST$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "XFERDEST" element
     */
    public void setXFERDEST(net.ofx.types.x2003.x04.BooleanType.Enum xferdest)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XFERDEST$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(XFERDEST$6);
            }
            target.setEnumValue(xferdest);
        }
    }
    
    /**
     * Sets (as xml) the "XFERDEST" element
     */
    public void xsetXFERDEST(net.ofx.types.x2003.x04.BooleanType xferdest)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(XFERDEST$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(XFERDEST$6);
            }
            target.set(xferdest);
        }
    }
    
    /**
     * Gets the "SVCSTATUS" element
     */
    public net.ofx.types.x2003.x04.ServiceStatusEnum.Enum getSVCSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SVCSTATUS$8, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.ServiceStatusEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "SVCSTATUS" element
     */
    public net.ofx.types.x2003.x04.ServiceStatusEnum xgetSVCSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServiceStatusEnum target = null;
            target = (net.ofx.types.x2003.x04.ServiceStatusEnum)get_store().find_element_user(SVCSTATUS$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "SVCSTATUS" element
     */
    public void setSVCSTATUS(net.ofx.types.x2003.x04.ServiceStatusEnum.Enum svcstatus)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SVCSTATUS$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SVCSTATUS$8);
            }
            target.setEnumValue(svcstatus);
        }
    }
    
    /**
     * Sets (as xml) the "SVCSTATUS" element
     */
    public void xsetSVCSTATUS(net.ofx.types.x2003.x04.ServiceStatusEnum svcstatus)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServiceStatusEnum target = null;
            target = (net.ofx.types.x2003.x04.ServiceStatusEnum)get_store().find_element_user(SVCSTATUS$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ServiceStatusEnum)get_store().add_element_user(SVCSTATUS$8);
            }
            target.set(svcstatus);
        }
    }
}
